package com.bear.sgg.springboot_12_task.controller;

import com.bear.sgg.springboot_12_task.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassNmae AsyncController
 * @Description TODO
 * @Author bear
 * @Date 2020/3/18 0018 上午 9:19
 */
@RestController
public class AsyncController {

    @Autowired
    AsyncService asyncService;

    @GetMapping("/hello")
    public String sayHello() {
        asyncService.processing();
        return "hello";
    }
}
